package itfuge.service.impl;

import itfuge.dao.BookDao;
import itfuge.service.BookService;

public class BookServiceImpl implements BookService {
    //private BookDao bookDao = new BookDaoImpl();
    private BookDao bookDao;

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    private Integer age;

    public void setAge(Integer age) {
        this.age = age;
    }
    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public void save() {
        System.out.println("bood service save...");
        bookDao.save();
        System.out.println(age+"---"+name);
    }
}
